﻿using System;

namespace SharpSqlAnalyzer.pp.utils
{
	// Token: 0x020001F7 RID: 503
	internal static class Utils
	{
		// Token: 0x060011A5 RID: 4517 RVA: 0x00315B58 File Offset: 0x00313D58
		public static void Fill<T>(T[] array, int start, int end, T value)
		{
			for (int i = start; i < end; i++)
			{
				array[i] = value;
			}
		}

		// Token: 0x060011A6 RID: 4518 RVA: 0x00315B7C File Offset: 0x00313D7C
		public static void Fill<T>(T[] array, T value)
		{
			if (array == null)
			{
				throw new ArgumentNullException("array");
			}
			for (int i = 0; i < array.Length; i++)
			{
				array[i] = value;
			}
		}

		// Token: 0x060011A7 RID: 4519 RVA: 0x00315BAD File Offset: 0x00313DAD
		public static string createEmpty(int size)
		{
			char[] array = new char[size];
			Utils.Fill<char>(array, 0, size, ' ');
			return new string(array);
		}
	}
}
